home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000029_icon-group-sender _Mon Sep 4 13:44:10 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA02942
for icon-group-addresses; Mon, 4 Sep 2000 13:43:57 -0700 (MST)
Message-Id: <200009042043.NAA02942@baskerville.CS.Arizona.EDU>
From: Guido Milanese <gmilanese@mclink.it>
X-Newsgroups: comp.lang.icon
Subject: Graphics: TextList problem
Date: Sat, 02 Sep 2000 21:44:25 +0200
X-Accept-Language: it, en
To: icon-group@optima.CS.Arizona.EDU
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1507
I noticed that the participants to this discussion group are all
almost all at "high level"... and therefore I always hesitate
before asking simple questions. However, I take the libery to
post a simple question on graphics. I would like to use the
TextList instruction to display the contents of a file or of long
variables. I used VIB and I obtain this code, slightly edited:
#===<<vib:begin>>=== modify using vib; do not remove this marker
line
procedure ui_atts()
return ["size=600,401", "bg=pale gray"]
end
procedure ui(win, cbk)
return vsetup(win, cbk,
[":Sizer:::0,0,600,400:",],
["list:List:r::116,89,400,50:",list_cb],
)
end
#===<<vib:end>>=== end of section maintained by vib
The callback procedure (but is it necessary?) is
procedure list_cb(vidget, value)
return
end
and I setup windows this way:
VSetItems(vidgets["list"], ["a", "b", "c", "d"])
But if I substitute this test list with real data, I see that
output terminates at each newline char: I read a file in
untranslated mode, save input as a variable (e.g. testvar), and
write as such:
VSetItems(vidgets["list"], [testvar])
but output stops after the first newline (I tested the output in
a "normal" window and it's all OK).
How can I do?
Thanks!
Guido (Italy)
------------------------------------------------------
Guido Milanese Vocal Ensemble "Ars Antiqua"
gmilanese@mclink.it http://fly.to/arsantiqua
Salita del Passero 11 I-16126 Genova GE, Italy
* Sed nomini tuo da gloriam *